export default {
  methods: {
    checkPermission(btnName) {
      console.log(this)
      //   return this.$store.state.user.userInfo.roles.points.indexOf(btnName) !== -1
      // 判断个人数据在的时候还校验按钮权限
      const roles = this.$store.state.user.userInfo.roles
      return roles && roles.points.indexOf(btnName) !== -1
    }
  }
}
